<template>
  <div>
    <div class="box">
      <div class="header">
        <div class="img">
          <img
            src="http://yanxuan.nosdn.127.net/8945ae63d940cc42406c3f67019c5cb6.png"
            alt=""
          />
        </div>
        <div class="text">首页</div>
      </div>
      <div class="content">
        <div>我的订单</div>
        <div>优惠券</div>
        <div>我的足迹</div>
        <div>我的收藏</div>
        <div @click="address('/address')">地址管理</div>
        <div>联系客服</div>
        <div>帮助中心</div>
        <div @click="address('/idea')">意见反馈</div>
        <div></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    address(to) {
      this.$router.push({ path: to });
    },
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 375px;
  height: 140px;
  .header {
    width: 100%;
    padding: 0 15px;
    height: 140px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: #333;
    .img {
      width: 74px;
      height: 74px;

      img {
        width: 100%;
        border-radius: 50%;
      }
    }
    .text {
      margin-left: 15px;
      font-size: 14px;
      color: #fff;
    }
  }
  .content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5px;
    div {
      width: 124px;
      padding: 25px 0;
      border: 0.5px solid #dadada;
      box-sizing: border-box;
    }
  }
}
</style>